import 'package:get/get.dart';

//控制器
class ContentController extends GetxController {
  int _number = 0;
  String _name = "123";

  get number => _number;

  get name => _name;

  void increase() {
    _number++;
    _name = "first$_number";
    update();
  }

  void change(String name) {
    _name = name;
    update();
  }
}
